package com.yaowk.service.mall.clothing.dao;

import com.yaowk.service.common.BaseRepository;
import com.yaowk.service.mall.clothing.entity.CmMember;
import org.springframework.stereotype.Repository;

import java.util.Date;

@Repository
public interface MemberDao extends BaseRepository<CmMember, Integer> {

    /**
     * 根据时间区间统计量体师激活会员数
     *
     * @param beginTime
     * @param endTime
     * @param surveyorId
     * @return
     */
    Integer countByActiveTimeBetweenAndSurveyorId(Date beginTime, Date endTime, Integer surveyorId);

    /**
     * 根据时间区间统计量体师录入会员数
     *
     * @param beginTime
     * @param endTime
     * @param surveyorId
     * @return
     */
    Integer countByInputTimeBetweenAndSurveyorId(Date beginTime, Date endTime, Integer surveyorId);
}
